/*
 * Create Date 2006-5-30
 */
package com.jmcgg.freesky.common.util;

/**
 * Title: FreeSky Common Java Library <br>
 * Description: FreeSky Common Java Library <br>
 * Copyright: Copyright (c) 2005~2009 www.afss.cn <br>
 * Company: Amei's FreeSky Studio <br>
 * 
 * @author <b>Jacky Chou</b> (AFSS [Amei's FreeSky Studio])
 * @version 1.3.0, 2009-02-09, Clean the definition<br>
 *          1.2.1, 2008-08-05, Clean and optimize the source code.<br>
 *          1.2.0, 2008-02-23, Upgrade freesky.jar to 1.2.0 with Struts 2<br>
 *          1.0.0, 2006-05-30, Initial Version<br>
 */
public class Const {
	// User information who login the (admin) system
	public final static String SYS_LOGINUSER = "SYS_LOGINUSER";
	public final static String SYS_USER_ID = "SYS_USER_ID";
	public final static String SYS_USER_NAME = "SYS_USER_NAME";
	public final static String SYS_USER_PWD = "SYS_USER_PWD";

	// User information who login the web site
	public final static String WEB_LOGINUSER = "WEB_LOGINUSER";
	public final static String WEB_USER_ID = "WEB_USER_ID";
	public final static String WEB_USER_NAME = "WEB_USER_NAME";
	public final static String WEB_USER_PWD = "WEB_USER_PWD";

	public final static String FS_USER = "Jacky";
	public final static String FS_PWD = "amei";

	/**
	 * <b>Web Operation Type</b><br>
	 * _view: call this method to get the item to be viewed <br>
	 * _new: call this method before add a new item <br>
	 * _add: call this method to add the new created item (equal to save_new) <br>
	 * _edit: call this method to get record before edit/modify <br>
	 * _update: call this method to update the database after edit (equal to
	 * save_edit)<br>
	 * _delete: call this method to delete the record <br>
	 * _page: call this method to get a page of records <br>
	 * _all: call this method to get all records <br>
	 * _list: call this method to get a list of records and turn to list page <br>
	 * _noop: do nothing<br>
	 **/
	public final static String WEB_OP_VIEW = "_view";
	public final static String WEB_OP_NEW = "_new";
	public final static String WEB_OP_ADD = "_add";
	public final static String WEB_OP_EDIT = "_edit";
	public final static String WEB_OP_UPDATE = "_update";
	public final static String WEB_OP_DELETE = "_delete";
	public final static String WEB_OP_PAGE = "_page";
	public final static String WEB_OP_ALL = "_all";
	public final static String WEB_OP_LIST = "_list";
	public final static String WEB_OP_NOOP = "_noop";

	public final static String CHECK_CODE = "CHECK_CODE";
	public final static String MSG_INFO = "MSG_INFO";
	public final static String PAGE_LOGIN = "PAGE_LOGIN";
	public final static String PAGE_ERROR = "PAGE_ERROR";
	public final static String ERR_CLOSE = "ERR_CLOSE";
	public final static String SUC_CLOSE = "SUC_CLOSE";
	public final static String REDIRECT_MSG = "REDIRECT_MSG";
	public final static String REDIRECT_PATH = "REDIRECT_PATH";

	// Number System Tag: b=2; o=8; A=10; Z=36; x=60;
	public final static String NST02 = "b";
	public final static String NST08 = "o";
	public final static String NST10 = "A";
	public final static String NST36 = "Z";
	public final static String NST60 = "x";
	// Number System
	public final static int NS02 = 2;
	public final static int NS08 = 8;
	public final static int NS10 = 10;
	public final static int NS36 = 36;
	public final static int NS60 = 60;
	// Freesky tag
	public final static String FST = "FS";
	// Product Suite Name
	public final static String FREESKY = "Freesky";
	// Freesky Date Format
	public final static String FS_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
	public final static String FS_SYSTEM_NAME = "JMG@Home";
	public final static String FS_APP_TAG = "JMCGG";
	public final static String FS_SYS_USER = "FS_SYS_USER";
	public final static String FS_SYS_PWD = "FS_SYS_PWD";

	public final static String EMAIL_HOST_NAME = "EMAIL_HOST_NAME";
	public final static String EMAIL_SMTP_PORT = "EMAIL_SMTP_PORT";
	public final static String EMAIL_USER_ID = "EMAIL_USER_ID";
	public final static String EMAIL_PASSWORD = "EMAIL_PASSWORD";
	public final static String EMAIL_ADDRESS = "EMAIL_ADDRESS";
}
